import React from 'react'
import './style.scss'
import { NavBar } from 'antd-mobile'
import { useNavigate } from 'umi'
type PropType = {
  title: string
}
function index(props: PropType) {
  const navigate = useNavigate();
  return (
    <div className='navbar'>
      <NavBar onBack={() => {
        navigate(-1)
      }}>{props.title}</NavBar>
    </div>
  )
}

export default index